package com.xjtu.se.homework.client.mainPage.dao;

import com.xjtu.se.homework.client.mainPage.PicDto;
import org.apache.ibatis.annotations.Insert;


public interface PicDao {
    @Insert("insert into history(u_id,request_id,search_id,ques_class,ans_num) values (#{u_id},#{request_id},#{search_id},#{ques_class},#{ans_num})")
    boolean addHistory(PicDto picDto);

    boolean uploadFile(PicDto picDto);
    @Insert("insert into log(u_id,dev_id,search_time,search_image,items,request_id,search_id) values (#{u_id},#{dev_id},#{search_time},#{search_image},#{items},#{request_id},#{search_id})")
    boolean addLog(PicDto picDto);
}
